package ru.sviridov.sellandbuy.tools;

import ru.sviridov.sellandbuy.AdvertisingService;
import android.content.Context;
import android.content.Intent;

public abstract class AdsTools {

    public static void createNewAds(Context context, Object newAds) {
        Intent intent = new Intent(context, AdvertisingService.class);
        intent.putExtra(AdvertisingService.TYPE, AdvertisingService.TYPE_CREATE);
//        intent.putExtra(AdvertisingService.ADS, newAds);
        context.startService(intent);
    }
    
    public static void loadAdsList(Context context, Object myOrOthers) {
        Intent intent = new Intent(context, AdvertisingService.class);
        intent.putExtra(AdvertisingService.TYPE, AdvertisingService.TYPE_CREATE);
//        intent.putExtra(AdvertisingService.ADS, newAds);
        context.startService(intent);
    }
}
